<!DOCTYPE html>
<html>
<?php $perfil = $this->session->userdata('perfil') ?>
<head>
<style>
	
	th,td
	{
		padding:10px;
	}
	th
	{
		border:1px solid black;
		text-align:left;
	}
</style>
<h2 align="center">Tus almas gemelas</h2>
</head>

<body>
<table border="1" style="width:500px">
<tr>
  <th><strong>Alma Gemela</strong></th>
  <th><strong>Afinidad</strong></th>		
  <th><strong>Coincidentes/Totales</strong></th>
</tr>
<tr>
	<?php foreach ($listaAfinidad as $fila)
		  {	?>
		  <tr>
		  	<td><?php echo  '<a href="'.base_url().'index.php/'.$perfil.'/eventosAlmaGemela/'.$fila['idUser'].'">'.$fila['nomUsuario']; ?></td>
		  	<td><?php echo round($fila['porcent']). '%'; ?></td>
		  	<td><?php echo $fila['coinciden']. '/' .$fila['totEventos'].'<br>'; ?></td>
			<?php } ?>
		  </tr>
</tr>
</table>
</body>

</html>